count = 0
height = 100
distance = height
# 弹起来高度大于0.01
while height / 2 >= 0.01:
    count += 1
    height = height / 2
    distance += height * 2
else:
    distance += height

print('弹了%d次' % count)
print('弹起总距离:%.2f' % distance)
print(round(distance, 2))
